# -*- conding:utf-8 -*-

"""
@author: Laowang
@contact: QQ:1125564921
@Created on: 2022/6/23
@Remark: 
"""


from abc import ABCMeta


class SingleMeta(metaclass=ABCMeta):

    def __new__(cls, *args, **kwargs):
        if not hasattr(cls, "_instance"):
            setattr(cls, "_instance", super().__new__(cls))
        return getattr(cls, "_instance")

